package com.heima.controller;


import com.heima.pojo.vo.TbBusinessVo;
import com.heima.service.ITbBusinessService;
import com.heima.service.impl.TbBusinessServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商圈表 前端控制器
 * </p>
 *
 * @author AkiRinko
 * @since 2024-06-08
 */
@RestController
@RequestMapping("/api/vm-service/businessType")
@RequiredArgsConstructor
public class TbBusinessController {
    private final ITbBusinessService tbBusinessService;

    /**
     * 查询商圈列表
     * @return
     */
    @GetMapping
    private List<TbBusinessVo> selectBusiness() {
        return tbBusinessService.selectBusiness();
    }

}
